package com.yiang.user.feign;

import com.yiang.feign.UserClient;
import com.yiang.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserFeign implements UserClient {

    @Autowired
    private UserService userService;

    @Override
    public String getUser() {
        return userService.list().toString();
    }
}
